:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #2196f3;
    --bs-yellow: #ffffff;
    --bs-red: #ff5900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('https://i.postimg.cc/QxR9VnFH/BACKGROUND-WEB-BENTUK4-D-1-LESSsssss.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 90px;
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0);
    position: fixed; /* Make header fixed */
    top: 0; /* Stick to top */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000; /* Ensure header stays above other content */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Optional: adds subtle shadow */
    backdrop-filter: blur(10px);
}

.logo-container img {
    max-height: 50px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--bs-yellow);
}

.btn-register {
    background-color: var(--bs-red);
    color: white;
}

.btn:hover {
    transform: scale(1.05);
}

.content-container {
    display: flex;
    justify-content: space-between;
    padding: 50px 5%;
    gap: 30px;
}

.category-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    width: 45%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgb(255, 111, 0);
}

.category-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--bs-yellow);
}

.category-list, .popular-games-list {
    list-style: none;
    max-height: 300px; /* Tentukan tinggi maksimal */
    overflow-y: auto; /* Aktifkan scrollbar vertikal */
    scrollbar-width: thin; /* Untuk Firefox */
    scrollbar-color: var(--text-color) rgba(255,255,255,0.1); /* Untuk Firefox */
}

.category-list li, .popular-games-list li {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.493);
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Kustomisasi scrollbar untuk Chrome, Edge, dan Safari */
.category-list::-webkit-scrollbar,
.popular-games-list::-webkit-scrollbar {
    width: 8px;
}

.category-list::-webkit-scrollbar-track,
.popular-games-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.category-list::-webkit-scrollbar-thumb,
.popular-games-list::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

/* Tambahkan sedikit padding di bagian bawah agar scrolling terlihat smooth */
.category-list li:last-child,
.popular-games-list li:last-child {
    margin-bottom: 10px;
}

.category-list li:hover, .popular-games-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.category-list li i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 20px;
}

.category-list a,
.popular-games-list a {
    text-decoration: none; /* Menghilangkan garis bawah */
    color: inherit; /* Menggunakan warna teks dari parent */
    display: block; /* Membuat seluruh area dapat diklik */
    width: 100%;
    height: 100%;
}

.category-list li,
.popular-games-list li {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.384);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.category-list li:hover,
.popular-games-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.main-banner {
    width: 100%;
    height: auto;
    margin-top: 50px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* Responsive Design */
@media screen and (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }

    .category-section {
        width: 100%;
    }

}

@media screen and (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 15px 5%;
    }

    .main-banner {
        height: 200px; /* Adjusted height for mobile */
    }

    .auth-buttons {
        margin-top: 15px;
    }

    .logo-container img {
        max-height: 40px; /* Slightly smaller logo on mobile */
    }
    
    .logo-container.center img {
        margin: 10px 0;
    }
    
    body {
        padding-top: 117px; /* Adjust for taller header on mobile */
    }

    .image-container {
        width: 500px;
        height: 200px;
        margin: 15px auto;
    }

    .double-banner {
        margin-top: 70px;
        display: none;
    }
    
    .double-banner {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        overflow: hidden;
    }

}

@media screen and (max-width: 480px) {
    .category-section {
        padding: 15px;
    }

    .main-banner {
        height: 125px; /* Adjusted height for mobile */
    }

    .auth-buttons {
        display: flex;
        gap: 10px;
    }
    
    .btn {
        padding: 8px 15px; /* Smaller buttons on mobile */
        font-size: 14px;
    }

}

.footer {
    background-color: #121212a6;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

.footer p {
    margin: 0;
}

.double-banner {
    margin-top: 90px;
}

.double-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    background: none;
    margin-top: 30px; /* This will push the banner below the header */
}

.double-banner picture {
    width: 100%;
    display: block;
}

.double-banner {
    margin-top: 90px;
}

/* virtual assistant */

.virtual-assistant {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    border: 1px solid var(--accent-color);
}

.assistant-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 15px 15px 0 0;
}

.assistant-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.close-assistant {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-container {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    white-space: pre-line;
    line-height: 1.5;
    font-size: 14px;
}

.chat-message a {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

.chat-message a:hover {
    color: #ffd700;
}

.chat-message.bot {
    background: linear-gradient(145deg, #151616, #1976d2);
    margin-right: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-message.user {
    background: linear-gradient(145deg, #333, #222);
    margin-left: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



.quick-actions {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    background: var(--accent-color);
}

.assistant-label-img {
    height: 100px; /* Adjust as needed */
    width: auto;
    animation: fadeIn 0.3s ease;
}

.robot-icon {
    width: 60px; /* Adjust as needed */
    height: 60px;
}

.assistant-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Virtual Assistant Styles */
.virtual-assistant {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    border: 1px solid var(--accent-color);
}

.assistant-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 15px 15px 0 0;
}

.assistant-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.close-assistant {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-container {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
}

.chat-message.bot {
    background: #3f4b55;
    margin-right: 50px;
}

.chat-message.user {
    background: #333;
    margin-left: 50px;
}

.message-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #333;
}

.message-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2a2a2a;
    color: white;
}

.message-input button {
    padding: 8px 15px;
    background: var(--accent-color);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.message-input button:hover {
    background: #1976d2;
}

.assistant-trigger {
    position: fixed;
    bottom: 68px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-yellow);
    border: none;
    color: rgb(255, 0, 0);
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.assistant-trigger:hover {
    transform: scale(1.1);
}

/* Custom Scrollbar for Chat Container */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Message Animation */
.chat-message {
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-wrapper {
    position: fixed;
    bottom: 116px; /* Adjusted position */
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    flex-direction: row-reverse; /* Reverse order for left positioning */
}

/* Position variations */
.assistant-wrapper.bottom-left {
    left: 20px;
    right: auto;
    flex-direction: row;
}

.assistant-wrapper.top-right {
    top: 20px;
    bottom: auto;
}

.assistant-wrapper.top-left {
    top: 20px;
    left: 20px;
    right: auto;
    bottom: auto;
    flex-direction: row;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .assistant-wrapper {
        bottom: 117px;
    }
}
